package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.settlehistory.PMSettleHistoryTransferer;
import com.fis.hlo.pm.settlehistory.PMSettleHistoryTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class SettleHistoryTransfererClient {

	private static final QName SERVICE_NAME = new QName(
			"http://settlehistory.pm.hlo.fis.com/",
			"PMSettleHistoryTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_SETTLE_HISTORY_PORT_KEY);

	public static PMSettleHistoryTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMSettleHistoryTransfererService ss = new PMSettleHistoryTransfererService(
				url, SERVICE_NAME);
		PMSettleHistoryTransferer port = ss.getPMSettleHistoryTransfererPort();
		return port;
	}

}
